package com.test.clyq.entity;

import com.test.entity.Item;
import com.test.json.JsonUtil;

/**
 * 评价选项实体. <br>
 * 评价选项实体.
 * <p>
 * Copyright: Copyright (c) Mar 15, 2011 6:43:18 PM
 * <p>
 * Company: 北京宽连十方数字技术有限公司
 * <p>
 * 
 * @author suncg@c-platform.com
 * @version 1.0.0
 */
public class Option implements Item {

	private static final long serialVersionUID = 2157038028229732428L;

	/** 选项内容 */
	private String content;

	/** 此选项选择的数量 */
	private Long count;

	/** 主键 */
	private Long id;

	/** 评价内容集 */
	private Long optionQuestionId;

	private Question question;

	public String getContent() {
		return content;
	}

	public Long getCount() {
		return count;
	}

	public Long getId() {
		return id;
	}

	public Long getOptionQuestionId() {
		return optionQuestionId;
	}

	public Question getQuestion() {
		return question;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public void setCount(Long count) {
		this.count = count;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setOptionQuestionId(Long optionQuestionId) {
		this.optionQuestionId = optionQuestionId;
	}

	public void setQuestion(Question question) {
		this.question = question;
	}

	public String toJSON() {
		return JsonUtil.getJsonStringFromObject(this);
	}

	public String toXML() {
		return null;
	}

}
